#include "../common.h"

void Task::deleteCurrTask() {
	vTaskDelete(xTaskGetCurrentTaskHandle());
}

//eTaskState Task::getTaskCurrState() {
//	return eTaskGetState(xTaskGetCurrentTaskHandle());
//}

long Task::getTaskSize() {
	return _taskSize;
}

bool Task::isShutdown() {
	return _shutdown;
}
void Task::shutdown() {
	_shutdown=true;
}
void Task::delay(uint64_t milliseconds) {
	vTaskDelay(pdMS_TO_TICKS(milliseconds));
}

